drivers: net: ldpaa_eth: Correct error handler for qbman_swp_acquire()
authorAshish Kumar <[email protected]>
Thu, 26 Oct 2017 10:33:22 +0000 (16:03 +0530)
committerYork Sun <[email protected]>
Tue, 14 Nov 2017 16:33:20 +0000 (08:33 -0800)
commit5e9445da288c5121546235e8201768abd087b281
tree996a19d422a30ac28ef7d0c3c8f986628662b31c
parentc253573f3e269fd9a24ee6684d87dd91106018a5
drivers: net: ldpaa_eth: Correct error handler for qbman_swp_acquire()

The zero value returned from qbman_swp_acquire() is an error
condition meaning no free buffer for allocation.

Signed-off-by: Ashish Kumar <[email protected]>
Signed-off-by: Kushwaha Prabhakar <[email protected]>
[YS: revised commit message]
Reviewed-by: York Sun <[email protected]>
drivers/net/ldpaa_eth/ldpaa_eth.c